package com.springblog.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author ifredom@gmail.com
 * @since 2022-04-23
 */
@Data
@Entity
@Table(name="jpa")
public class JpaEntity {

    private static final long serialVersionUID = 1L;

    @Id
    private Long id;

    @NotBlank(message="标题不能为空")
    private String title;

    private Date createTime;
}
